﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Competition.Domain.Entity
{
    /// <summary>
    /// 轮播图
    /// </summary>
    [Serializable, Table("m_banner")]
    public partial class Banner : IAggregateRoot
    {
        #region Model
        /// <summary>
        /// 
        /// </summary>
        [Key, Column("id")]
        public int Id { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        [Column("url")]
        public string Url { get; set; }
        [Column("link")]
        public string Link { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [Column("title")]
        public string Title { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [Column("addtime")]
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Column("status")]
        public int Status { get; set; }

        #endregion Model

    }
}